
<meta content="telephone=no" name="format-detection" />
<title>{$sys_name} - {$lang.zxfk}</title>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>Bootstrap Template</title>
    <!-- Bootstrap -->
    <link href="/css/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/css/reset.css" rel="stylesheet">
    <link href="/css/css/style.css" rel="stylesheet">
    <link href="../Public/style.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/css/fakeLoader.css">
    <script src="/js/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="/js/js/respond.js" type="text/javascript"></script>
    <script src="/js/js/echarts.common.min.js" type="text/javascript"></script>
    <script src="/js/js/common.js" type="text/javascript"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<!--
  <div class="fakeloader"></div>
  <script src="js/fakeLoader.min.js"></script>
  <script>
  	    $(document).ready(function(){
  	        $(".fakeloader").fakeLoader({
  	            timeToHide:1200,
  	            bgColor:"rgba(0,0,0,.5)",
  	            spinner:"spinner2"
  	        });
  	    });
  	</script>
-->

<body class="bg">
<!--头部-->
<include file="Public/Home/Pubheader.html" />
<section class="wrapper">
    <!--左侧导航-->
    <include file="Public/Home/Menu.html" />

    <div class="content-area">
        <div class="t80"></div>
        <div class="z_top">
            <div class="location">
                <img src="images/location.png" alt="">
                <span>{$lang.ur_here}：{$lang.zxfk}</span>
            </div>
        </div>
            <div class="content">
                <div class="msg_box msg_box11">
                    <h3> {$lang.txfk}</h3>

                        <form action="{:U('User/feedback')}"  method="post" name="myform" enctype="multipart/form-data">
                            <div style="width: 100%;margin: 15px auto">
                                <div style="width: 100%;float: left;text-align: center;margin: 10px 0">
                                    <font style="font-size: 16px">{$lang.mswt}！</font>
                                </div>
                                <div style="width: 100%;float: left;text-align: center;">
                                    <font style="font-size: 16px">{$lang.title}</font>：<input type="text" name="title" id="title" class="sele selex">
                                </div>
                                <div style="width: 100%;float: left;text-align: center;">
                                    <font style="font-size: 16px">{$lang.content}</font>：<textarea id="feedback" name="feedback"></textarea>
                                </div>
                                <div style="width: 100%;float: left;text-align: center;margin-top: 15px">
                                    <font style="font-size: 16px">{$lang.file}</font>：
                                    <div class="sele  selex" style="display: inline-block;vertical-align: middle;background: none;text-indent: 0">
                                        <div class="sub_ban" style="height:35px;line-height: 35px;float: left;margin-right: 15px" id="fileSelect">{$lang.choose}</div>
                                            <div class="sub_ban" style="height:55px;float: left;background: none">
                                                <img src="" id="showimg" style="height: 100%;display: none">
                                            </div>
                                        <input type="file" id="file" name="file" style="display: none">
                                    </div>

                                </div>
                                <script>
                                    /*按钮绑定input file*/
                                    var fileSelect = document.getElementById("fileSelect"),
                                            fileElem = document.getElementById("file");
                                    fileSelect.addEventListener("click", function (e) {
                                        if (fileElem) {
                                            fileElem.click();
                                        }
                                        e.preventDefault(); // prevent navigation to "#"
                                    }, false);
                                    //图片预览；
                                    var fileInput = document.querySelector('input[type=file]'),//querySelector()方法返回文档中匹配指定 CSS 选择器的一个元素。
                                            previewImg = document.getElementById('showimg');
                                    fileInput.addEventListener('change', function () {        //addEventListener() 方法用于向指定元素添加事件句柄。
                                        var file = this.files[0];
                                        var reader = new FileReader();     //每循环一次重新new一个FileReader实例
                                        reader.addEventListener('load', function () {
                                            previewImg.src = reader.result;   // 监听reader对象的onload事件，当图片加载完成时，把base64编码賦值给预览图片
                                            $("#showimg").show()
                                        }, false);
                                        reader.readAsDataURL(file);          // 调用reader.readAsDataURL()方法，把图片转成base64编码格式
                                    }, false);
                                </script>
                            </div>
                            <div style="width:250px;margin: auto;height: 30px;top: 25px;cursor: pointer;position: relative">
                                <div onclick="checkthis()" class="sub_ban" style="float: left">{$lang.sub}</div>
                                <div onclick="reset()" class="sub_ban" style="float: right">{$lang.reset}</div>
                            </div>
                        </form>
                </div>


                <if condition="$msgcount gt 0">
                <div class="msg_box msg_box12"  style="background: #fff">
                    <h3>{$lang.lsfk}</h3>
                    <div class="tab-content" >
                        <div id="tab-1" class="tab-pane active">
                            <div class="full-height-scroll">
                                <div class="table-responsive">
                                    <table class="table table-striped table-hover" style="position: relative;font-size: 14px">
                                        <tbody>
                                        <th style="text-align: center">{$lang.title}</th>
                                        <th style="text-align: center">{$lang.fksj}</th>
                                        <th style="text-align: center">{$lang.glhf}</th>
                                        <foreach name="msglist" item="item">
                                            <tr style="border-bottom: 1px solid #f9f9f9">
                                                <td class="fknr_td" style="border: none"><div class="fknr"><a href="{:U('User/msgdetail',array('id'=>$item[id]))}">{$item.title}</a></div></td>
                                                <td style="border: none;width: 30%">{:date('Y-m-d',$item[date])}</td>
                                                <td style="border: none;width: 30%">
                                                    <if condition="$item.status eq 0">
                                                    <if condition="$item.admin eq 1">{$lang.yhf}<else/>{$lang.whf}</if>
                                                    <else/>
                                                        已关闭
                                                    </if>
                                                </td>
                                            </tr>
                                        </foreach>
                                        </tbody>
                                    </table>
                                    <!--分页-->
                                    <input type="hidden" id="page_url" value="msg">
                                    <include file="Public/Home/page.html" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </if>
              <script>

                  function close_fk(id){
                      $("#fknr_"+id).hide();
                  }
              </script>


            </div>

        </div>
    </div>

</section>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/js/js/bootstrap.js"></script>

<script type="text/javascript">
    function checkthis(){
        var title = $("#title").val();
        var feedback = $("#feedback").val();
        if(!title){
            document.getElementById("showmsg").innerHTML= "请填写反馈标题";
            $("#sysmsg").show();
        }else if(title.indexOf("<") != -1 || title.indexOf("script") != -1 || title.indexOf("html") != -1 || title.indexOf("php") != -1 || title.indexOf("{") != -1 ){
            document.getElementById("showmsg").innerHTML= "您填写的标题包含非法字符";
            $("#sysmsg").show();
        }else if(!feedback){
            document.getElementById("showmsg").innerHTML= "请填写反馈内容";
            $("#sysmsg").show();
        }else if(feedback.indexOf("<") != -1 || feedback.indexOf("script") != -1 || feedback.indexOf("html") != -1 || feedback.indexOf("php") != -1 || feedback.indexOf("{") != -1 ){
            document.getElementById("showmsg").innerHTML= "您填写的内容包含非法字符";
            $("#sysmsg").show();
        }else{
            document.myform.submit();//button按钮实现提交 方法
        }
    }
    function re_checkthis(){
        var feedback = $("#re_feedback").val();
        if(!feedback){
            document.getElementById("showmsg").innerHTML= "请填写反馈内容";
            $("#sysmsg").show();
        }else if(feedback.indexOf("<") != -1 || feedback.indexOf("script") != -1 || feedback.indexOf("html") != -1 || feedback.indexOf("php") != -1 || feedback.indexOf("{") != -1 ){
            document.getElementById("showmsg").innerHTML= "您填写的内容包含非法字符";
            $("#sysmsg").show();
        }else{
            document.re_myform.submit();//button按钮实现提交 方法
        }
    }
    function reset(){
        document.getElementById("title").value = "";
        document.getElementById("feedback").value = "";
        document.getElementById("file").value = "";
        document.getElementById("showimg").style.display="none";
        document.getElementById("title").focus();
    }
</script>
<script type="text/javascript">
    function autoScroll(obj) {
        $(obj).find(".list").animate({
            marginTop: "-50px"
        }, 500, function() {
            $(this).css({
                marginTop: "0px"
            }).find("li:first").appendTo(this);
        })
    }
    $(function() {
        setInterval('autoScroll(".scroll")', 4000)
    })
</script>
<script type="text/javascript">
    var myChart = echarts.init(document.getElementById("echarts"));
    option = {
        title: {
            text: '',
            subtext: '',
            x: 'center'
        },
        tooltip: {
            trigger: 'item',
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },

        legend: {
            orient: 'vertical',
            left: 'right',
            data: ['奖池', '业绩大比拼', '点位奖', '推荐奖']
        },
        series: [{
            name: '访问来源',
            type: 'pie',
            radius: ['50%', '70%'],
            center: ['40%', '50%'],
            data: [{
                value: 135,
                name: '奖池',
                itemStyle: {
                    color: '#fab42f'
                }
            }, {
                value: 210,
                name: '业绩大比拼',
                itemStyle: {
                    color: '#95c357'
                }
            }, {
                value: 334,
                name: '点位奖',
                itemStyle: {
                    color: '#3ea842'
                }
            }, {
                value: 335,
                name: '推荐奖',
                itemStyle: {
                    color: '#30c4a9'
                }
            }, ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }]

    };
    myChart.setOption(option);
</script>
<script type="text/javascript" language="javascript">
    var nav1 = document.getElementById("nav1");
    var links1 = nav1.getElementsByTagName("li");
    var lilen1 = nav1.getElementsByTagName("a");
    var currenturl1 = document.location.href;
    var last1 = 0;
    for (var i1=0;i1<links1.length;i1++)
    {
        var linkurl1 = lilen1[i1].getAttribute("href");
        if(currenturl1.indexOf(linkurl1)!=-1)
        {
            last1 = i1;
        }
    }

    links1[last1].className = "cur1";

</script>
<!--信息框-->
<include file="Public/Home/Showmsg.html" />

</body>

</html>







